from flask import redirect


from basic.config import GlobalInfo, GlobalCfg
from modules.module import WebsiteModule


class SqlVisualization(WebsiteModule):
    def __init__(self, parent):
        super(SqlVisualization, self).__init__(parent, 'sqlvisualization', 'SQL可视化工具箱，高斯申宇做的。')
        self.address = GlobalCfg.sql_visualization_address

    def homepage(self):
        return redirect(self.address, code=301)

